using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RLTorch 
{
    public float QValue=0;
    public Vector3 PidValue=Vector3.zero;
    public Vector3 PidDelta=Vector3.zero;
    public RLTorch(float qValue, Vector3 pidValue, Vector3 pidDelta)
    {
        QValue = qValue;
        PidValue = pidValue;
        PidDelta = pidDelta;
    }

    public RLTorch(RLTorch rl_torch)
    {
        QValue=rl_torch.QValue;
        PidValue=rl_torch.PidValue;
        PidDelta = rl_torch.PidDelta;
    }

    public override string ToString()
    {
        return $"Q={QValue},s={PidValue},a={PidDelta}";
    }
    public Vector3 GetNewPid()
    {
        return PidValue+PidDelta;
    }
}
